package com.training;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class TryCatch {
	public static void main(String args[]){
		int a,b;

		BufferedReader object = new BufferedReader(new InputStreamReader(System.in));

		try {
			a= Integer.parseInt(object.readLine());
			b = Integer.parseInt(object.readLine());
			System.out.println(a/b);
		}
		catch(NumberFormatException e){
			System.out.println("Catch1");
		} 
		catch (IOException e) 
		{
			e.printStackTrace();
		}
		finally{
			System.out.println("Finally");
		}
	}
}
